package com.zhouyu.examplemingle.fantype;

import java.util.List;

/**
 * @Description:
 */
public class VagetaGenerator implements MyGenerateor<Integer> {
  @Override
  public Integer next() {
    System.out.println("呵呵呵，蔬菜");
    return 1;
  }

  @Override
  public <T> T generateMethod(T t) {
    System.out.println("蔬菜泛型方法");
    return t;
  }

  @Override
  public <E> void generateMethod2(List<E> e) {
    System.out.println("蔬菜泛型方法2");
  }
}
